if (process.browser) {

    var FastClick = require('fastclick');


    if ('addEventListener' in document) {
        document.addEventListener('DOMContentLoaded', function () {
            FastClick.attach(document.body);
        }, false);
    }



    require("fullpage.js/dist/fullpage.css");

    const $ = require('jquery')

    const fullpage = require('fullpage.js')
    $.fn.fullpage = function (options) {
        var FP = new fullpage('#' + $(this).attr('id'), options);

        Object.keys(FP).forEach(function (key) {
            $.fn.fullpage[key] = FP[key];
        });
    };
    window.$ = $;
}
